<?php

namespace wxml\models\order\AR;

use wxml\models\product\AR\ProductAR;
use yii\db\ActiveRecord;

class OrderAR extends ActiveRecord {

    /**
     * return the table name
     */
    public static function tableName() {
        return 'order';
    }

    public function getProduct(){
        return $this->hasOne(ProductAR::className(), ['id' => 'product_id'])->asArray();
    }

}
